import Vue from 'vue'
import Vuex from 'vuex'
import user from './user';
import login from "./login"
import car from "./car"
import createPersistedState from 'vuex-persistedstate'
console.log(login);
Vue.use(Vuex)

export default new Vuex.Store({
  // state: {

  // },
  // getters: {
  // },
  // mutations: {
  // },
  // actions: {
  // },
  modules: {
    user,
    login,
    car
  },
  plugins: [
    createPersistedState({
      key: 'vuex', 
      storage: window.localStorage,
      whiteList: [],
      blackList: [],
    }),
  ],
})
